#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_exam1.py
# author:王雯雯
# datetime:2024-11-12 
# software: PyCharm

import random


class Person:
    def __init__(self):

        self.attack_power = 10

        self.health = 100

    def hit(self, dog):

        dog.health -= self.attack_power
        dog.attack_power -= 3
        self.attack_power -= 2
        if dog.health < 0:
            dog.health = 0
        if self.attack_power < 0:
            self.attack_power = 0